<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!-- 备份复制归档 -->
<ng-container *ngIf="backupDetailJobType.includes(job.type)">
  <lv-group lvGutter="16px" class="aui-gutter-column-lg">
    <span>{{ 'protection_sla_name_label' | i18n }}</span>
    <lv-group lvGutter="8px">
      <span [ngClass]="{'aui-link':isExist, 'aui-link-disabled': !isExist}" (click)="getSlaDetail()">{{slaName}} </span>
      <span *ngIf="slaUpdated">({{'insight_job_sla_name_updated_label' |
        i18n}})</span>
    </lv-group>
  </lv-group>

  <aui-sla-info [sla]="sla" [isTask]="true" [job]="job"></aui-sla-info>
</ng-container>

<!-- 即时挂载的挂载选项 -->
<ng-container *ngIf="dataMap.Job_type.live_mount_job.value === job.type && !!extendStr">
  <ng-container *ngIf="job.sourceSubType === applicationType.CNware">
    <aui-live-mount-cnware-summary [isTask]="true" [componentData]="liveMountData"
      [activeIndex]="3"></aui-live-mount-cnware-summary>
  </ng-container>
  <ng-container *ngIf="[applicationType.Fileset, applicationType.Volume].includes(job.sourceSubType)">
    <aui-live-mount-fileset-summary [isTask]="true" [componentData]="liveMountData"
      [activeIndex]="3"></aui-live-mount-fileset-summary>
  </ng-container>
  <ng-container *ngIf="job.sourceSubType === applicationType.Vmware">
    <aui-live-mount-vmware-summary [isTask]="true" [componentData]="liveMountData"
      [activeIndex]="3"></aui-live-mount-vmware-summary>
  </ng-container>
  <ng-container *ngIf="isLiveMountDatabase">
    <aui-live-mount-oracle-summary [isTask]="true" [componentData]="liveMountData"
      [activeIndex]="3"></aui-live-mount-oracle-summary>
  </ng-container>
  <ng-container *ngIf="[applicationType.NASShare, applicationType.NASFileSystem].includes(job.sourceSubType)">
    <aui-live-mount-nas-shared-summary [isTask]="true" [componentData]="liveMountData"
      [activeIndex]="3"></aui-live-mount-nas-shared-summary>
  </ng-container>
</ng-container>

<!-- 恢复高级参数 -->
<ng-container *ngIf="dataMap.Job_type.restore_job.value === job.type && !!extendStr">
  <aui-restore-parameter-detail [job]="job"></aui-restore-parameter-detail>
</ng-container>